<div class="row">
<div class="col-xs-12">

<form action="<?php echo DOMAIN_ADMIN?>/role/do_add_permissions" method="post" >
	<input type="hidden" name="role_id" value="<?php echo $role_id; ?>">
	<table id="inputs-table" class="table table-striped table-bordered table-hover" >
		<tr><td>角色名称：</td><td><?php echo $role_name;?></td></tr>
		<?php foreach($permission_res as  $key => $val){?>
		<tr>
			<td style="width: 200px"><?php echo $key;?>：</td>
			<td style="width: 780px">
			<div class="main-box">
				<?php foreach($val as $kk=>$vv){ ?>
					<span>
						<input type="checkbox" name="permissions[]"
						       <?php if(in_array($kk,$already_permission_arr)){ ?> checked <?php }?>
							   value="<?php echo $kk;?>" id="<?php echo $kk;?>" /><label for="<?php echo $kk;?>"><?php echo $vv;?></label>
				    </span>
				<?php } ?>
				
				</div>
			</td>
		</tr>
		<?php } ?>
		<tr>
			<td colspan="2" align="center">
				<button class="btn btn-info btn-sm" type="submit" >提交</button>
			</td>
		</tr>
	</table>
</form>

</div>
</div>
